<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div>
        <form action="/create/" method="post">
            <input type="text" name="todo" placeholder="todo"/>
            <input type="submit" value="提交">
        </form>
    </div>

    <div>
        {% for item in tododata %} 
            <li>{{item.date}} : {{item.todo}} <a href="/delete/?todo={{item.todo}}">已做</a></li>
        {% endfor %}
    </div> 
</body>
</html>